/**
 *
 */
package com.zhuoyue.zhtj.entity;

import org.hibernate.validator.constraints.Length;

import com.eit.eitsite.common.persistence.DataEntity;

/**
 * 所带班级Entity
 * @author hss
 * @version 2017-09-28
 */
public class Tclass extends DataEntity<Tclass> {
	
	private static final long serialVersionUID = 1L;
	private String gid;		// 工号
	private String gname;	//姓名
	private String classid;		// 所带班级编号
	
	public Tclass() {
		super();
	}

	public Tclass(String id){
		super(id);
	}
	@Length(min=0, max=40, message="姓名长度必须介于 0 和 40 之间")
	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	@Length(min=0, max=30, message="工号长度必须介于 0 和 30 之间")
	public String getGid() {
		return gid;
	}

	public void setGid(String gid) {
		this.gid = gid;
	}
	
	@Length(min=0, max=10, message="所带班级编号长度必须介于 0 和 10 之间")
	public String getClassid() {
		return classid;
	}

	public void setClassid(String classid) {
		this.classid = classid;
	}
	
}